package com.tledu.production.service.crafts.impl;

import com.tledu.production.mapper.crafts.ProcessMapper;
import com.tledu.production.model.crafts.ProcessModel;
import com.tledu.production.service.crafts.ProcessService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class ProcessServiceImpl implements ProcessService {
    private final ProcessMapper processMapper;
    @Override
    public List<ProcessModel> list() {
        return processMapper.list();
    }

    @Override
    public List<ProcessModel> selectByName(String condition, String conditionName) {
        return processMapper.selectByName(condition,conditionName);
    }

    @Override
    public int delPro(String processId) {
        return processMapper.delPro(processId);
    }

    @Override
    public int insertpro(ProcessModel processModel) {
        return processMapper.insertpro(processModel);
    }

    @Override
    public int updatepro(ProcessModel processModel) {


        return processMapper.updatepro(processModel);
    }

    @Override
    public ProcessModel selectId(String processId) {
        return processMapper.selectId(processId);
    }
}
